package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import redis.clients.jedis.Jedis;

@SpringBootApplication

@EnableScheduling
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }
    static {
        System.setProperty("druid.mysql.usePingMethod","false");
        Jedis jedis = new Jedis("localhost", 6379);
        jedis.set("TotalPerson","0");
        jedis.set("TotalAnswer", "0");
        jedis.set("TotalProblem", "0");
        jedis.close();
    }

}
